#ifndef	_FLIGHTCHESSBOARDSYSTEMCONFIG_H_
#define	_FLIGHTCHESSBOARDSYSTEMCONFIG_H_
#include <string>
#include <cstdint>
#include "common/SystemConfig.h"

using namespace std;
using namespace common;

namespace model_flight_chess_board
{
	class FlightChessBoardSystemConfig
	{
	public:
		const std::string &GetServerIp() const
		{
			return serverIp_;
		}
		const uint16_t  GetServerPort() const
		{
			return serverPort_;
		}
		const std::string &GetDbServerIp() const
		{
			return dbServerIp_;
		}
		const uint16_t GetDbServerPort() const
		{
			return dbServerPort_;
		}
		const std::string &GetDbUser() const
		{
			return dbUser_;
		}
		const std::string &GetDbPassword() const
		{
			return dbPassword_;
		}
		const std::string &GetDbName() const
		{
			return dbName_;
		}
		const std::string &GetFlightChessAirLineList() const
		{
			return airlineListJsonStr_;
		}
		const std::string &GetFlightChessPlaneNoList() const
		{
			return planeListJsonStr_;
		}
		FlightChessBoardSystemConfig();
		~FlightChessBoardSystemConfig(){}
	private:
		FlightChessBoardSystemConfig(const FlightChessBoardSystemConfig &);
		SystemConfig config_;//这个是系统配置专用类
		std::string airlineListJsonStr_;//航线列表的json信息
		std::string planeListJsonStr_;//飞机型号列表的json信息
		std::string serverIp_;
		uint16_t serverPort_;
		std::string dbServerIp_;
		uint16_t dbServerPort_;
		std::string dbUser_;
		std::string dbPass_;
		std::string dbPassword_;
		std::string dbName_;
	};
};

#endif
